/*
   This file is part of the 'Let's Do Stuff Together' project
   http://code.google.com/p/dostufftogether/

   Copyright 2010 Christoph Fuchs, Stefan Thaler

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */
package org.sti2.letsdostuff.configuration;

/**
 * Configuration file for the server URL and other stuff.
 * 
 * @author Christoph 'Gigi' Fuchs
 * 
 */
public class ServerConfiguration {

	/**
	 * The Constant ACTIVITY_SERVER. Note: When using the emulator 10.0.2.2
	 * equals the localhost of the machine. 127.0.0.1 refers to the loopback
	 * device of the phone
	 */
	public static final String ACTIVITY_SERVER = "http://10.0.2.2:8080/ActivityServer";
	
	/**
	 * Default range for 'nearest activities' search
	 */
	public static final int DEFAULT_RANGE = 10000;
	
	/**
	 * Google OpenID Provider endpoint
	 */
	public static final String GOOGLE_OPENID_AUTH = "https://www.google.com/accounts/o8/id";

	public static final String LOGIN_SUCCESS = ACTIVITY_SERVER + "/auth/?is_return=true";
	
	public static final String GOOGLE_LOGIN_CHECK = ACTIVITY_SERVER + "/auth/authenticated/?openIdUrl=" + GOOGLE_OPENID_AUTH;

}
